<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: pink;
            border: 1px solid green;
        }
        /* 鼠标滑过盒子改变宽高和背景 */
        .box:hover {
            width: 500px;
            height: 500px;
            background-color: orange;
            /* transition: all 2s ease 1s; */
            /* 只要背景变化*/
            /* transition: background-color 2s ease 1s; */
            /* 单独设置 */
            transition-property: background-color;
            transition-duration: 2s;
            transition-timing-function: linear;
            transition-delay: 1s;
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>